System and method for adaptively refreshing a web page

ABSTRACT

An improved system and method is provided for adaptively refreshing a web page. A base version of the web page may be partitioned into a collection of fragments. Then the collection of fragments may be compared with the corresponding fragments of a recent version of the web page to determine a divergence measurement of the difference between the base version and the recent version of the web page. The divergence measurement may be recorded in a change profile representing a change history of the web page that includes a sequence of numeric pairs indicating a time offset and a divergence measurement of the difference between a version of the web page at the time offset and a base version of the web page. The refresh period for the web page may be adjusted by applying an adaptive refresh policy using the divergence measurements recorded in the change profile.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present invention is related to the following United States patentapplication, filed concurrently herewith and incorporated herein in itsentirety:

“System and Method for Providing a Change Profile of a Web Page,”application Ser. No. 11/588,019, now abandoned; and

“System and Method Using a Refresh Policy for Incremental Updating ofWeb Pages,” application Ser. No. 11/588,022, now abandoned.

The present invention is also related to the following commonly-ownedU.S. patents:

U.S. Pat. No. 6,230,155, entitled “Method for Determining theResemblance of Documents”; and

U.S. Pat. No. 6,263,364, entitled “Web Crawler System Using Plurality ofParallel Priority Level Queues Having Distinct Associated DownloadPriority Levels for Prioritizing Document Downloading and MaintainingDocument Freshness”.

FIELD OF THE INVENTION

The invention relates generally to computer systems, and moreparticularly to an improved system and method for adaptively refreshinga web page.

BACKGROUND OF THE INVENTION

Refreshing web pages is a common procedure performed by web crawlers forupdating content indexed for use by search engines responding to searchqueries. Modern search engines may typically rely on incremental webcrawlers to feed content into various indexing and analysis layers,which in turn may provide content to a ranking layer that handles usersearch queries. In general, the crawling layer of a web crawler maydownload new web pages and refresh web pages that have changing content.Refreshing web pages very frequently may keep content of the web pagesupdated, but may place an unacceptable burden on the web crawler and mayleave few resources available for discovering and downloading new webpages with content not yet indexed.

Although functional, existing refreshing techniques may not be able toefficiently ensure adequate freshness of indexed web page content. Firstof all, current web page refresh techniques may fail to be selective andmay not target important and persistent information. Web pages may beunnecessarily refreshed with unimportant and ephemeral content. Withoutfocusing on important and long-lasting content, web pages withunimportant and ephemeral content such as advertisements or the “quoteof the day” may be refreshed for indexing, resulting in a waste of webcrawler resources. Second, current web page refresh techniques may failto be adaptive and may not react to shifting web page change behavior.Refresh techniques may assume static web page change behavior that mayresult in under-refreshing or over-refreshing a web page over time.Third, current web page refresh techniques may employ globalcoordination to schedule resources for refreshing web pages and fail toensure scalability with minimal overhead. Modern web crawlers may applya high degree of parallel processing by deploying hundreds or thousandsof nodes and such global coordination for resource allocation and/orscheduling may be inefficient.

The web page refreshing problem has been studied in the past, startingwith simple page change models (e.g., Poisson update process), objectivefunctions (e.g., binary freshness), and adaptivity. See for example, J.Cho and H. Garcia-Molina, Synchronizing a Database to Improve Freshness,In Proceeding of ACM SIGMOD, 2000; E. Coffman, Z. Liu, and R. R. Weber,Optimal Robot Scheduling for Web Search Engines, Journal of Scheduling,1, 1998; and J. Edwards, K. S. McCurley, and J. A. Tomlin, An AdaptiveModel for Optimizing Performance of an Incremental Web Crawler, InProceeding of the World Wide Web, 2001. Others have studiedtime-dependent change models and objective functions that take intoaccount search result ranking. See for example S. Pandey and C. Olston,User-centric Web Crawling. In Proceeding of the World Wide Web, 2005;and J. Wolf, M. Squillante, P. S. Yu, J. Sethuraman, and L. Ozsen,Optimal Crawling Strategies for Web Search Engines, In Proceeding of theWorld Wide Web, 2002. Unfortunately, each of these prior models fails totake into account longevity of information, and almost all prior workformulates a global optimization problem and proposes a solution basedon some kind of offline optimization procedure.

What is needed is a way to adaptively refreshing a web page. Such asystem and method should be able to apply a web page refresh strategythat may be selective, adaptive and local with minimal cross-nodecommunication among processing nodes executing web page refreshscheduling in a distributed system.

SUMMARY OF THE INVENTION

Briefly, the present invention may provide a system and method foradaptively refreshing a web page. In an embodiment, a web crawler may beprovided for adaptively refreshing a web page for updating contentindexed for use by a search engine. The web crawler may include anoperably coupled web page fragmentor for partitioning a web page into acollection of fragments, a fragment comparator for determining adivergence measurement for the web page by comparing the collections offragments of versions of the web page, a page refresh policy manager forimplementing a page refresh policy to determine the refresh period for aweb page using the divergence measurement, a page refresh scheduler forscheduling refreshing the web page at a time indicated by the refreshperiod. The web crawler may also include an operably coupled changeprofile manager for updating a change profile, including the divergencemeasurement of the web page.

The present invention may adaptively refresh a web page by firstpartitioning a base version of a web page into a collection offragments. Then the collection of fragments may be compared with thecorresponding fragments of a subsequent version of the web page todetermine a divergence measurement of the difference between the baseversion and the subsequent version of the web page. The refresh periodfor the web page may be adjusted by applying an adaptive refresh policyusing the divergence measurement and a time may be scheduled forrefreshing the web page using the adjusted refresh period. Thedivergence measurement may also be recorded in a change profile for theweb page.

The present invention may also provide a system and method of providinga change history of a web page. A change profile may be provided thatrepresents a change history of a web page. The change profile mayinclude a summary of the collection of fragments of a base version ofthe web page, an initial numeric pair indicating the time when thechange profile may be created and a base measurement of a base versionof the web page, and a sequence of numeric pairs indicating a timeoffset and a divergence measurement of the difference between versionsof the web page at the time offset and the base version of the web page.Once a web page profile may be created for a web page, the web pageprofile may be updated when a web page may be refreshed.

In various embodiments, a web page may be adaptively refreshed using achange profile. For instance, when a web page may be refreshed, asubsequent version of the web page may be partitioned into a collectionof fragments and the collection of fragments may be compared with thecorresponding fragments of a base version of the web page stored in thechange profile in order to determine a divergence measurement of thedifference between the subsequent version and the base version of theweb page. The refresh period for the web page may be adjusted byapplying an adaptive refresh policy using the divergence measurement anda time may be scheduled for refreshing the web page using the adjustedrefresh period. The divergence measurement may also be recorded in achange profile for the web page by extending the sequence of numericpairs indicating a time offset and a divergence measurement.

Any adaptive refresh policy may be applied using the framework of thepresent invention. For instance, an adaptive refresh policy may adjustthe refresh period by examining the change history of the web page andby comparing the utility of refreshing the web page at the expiration ofthe refresh period to a utility threshold. The framework of the presentinvention will also support other adaptive refresh policies as desired.Other advantages will become apparent from the following detaileddescription when taken in conjunction with the drawings, in which:

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram generally representing a computer system intowhich the present invention may be incorporated;

FIG. 2 is a block diagram generally representing an exemplaryarchitecture of system components in an embodiment for adaptivelyrefreshing a web page, in accordance with an aspect of the presentinvention;

FIG. 3 is a flowchart generally representing the steps undertaken in oneembodiment for adaptively refreshing a web page, in accordance with anaspect of the present invention;

FIG. 4 is a flowchart generally representing the steps undertaken in oneembodiment for creating a change profile of a web page, in accordancewith an aspect of the present invention;

FIG. 5 is a flowchart generally representing the steps undertaken in oneembodiment for updating a change profile of a web page, in accordancewith an aspect of the present invention;

FIG. 6 is a flowchart generally representing the steps undertaken in oneembodiment for adaptively scheduling refreshing a web page using achange profile, in accordance with an aspect of the present invention;and

FIG. 7 is a flowchart of a process for using a refresh policy forincremental updating web pages by calculating a refresh time forrevisiting a web page and checking for changes to it, in accordance withan aspect of the present invention.

DETAILED DESCRIPTION

Exemplary Operating Environment

FIG. 1 illustrates suitable components in an exemplary embodiment of ageneral purpose computing system. The exemplary embodiment is only oneexample of suitable components and is not intended to suggest anylimitation as to the scope of use or functionality of the invention.Neither should the configuration of components be interpreted as havingany dependency or requirement relating to any one or combination ofcomponents illustrated in the exemplary embodiment of a computer system.The invention may be operational with numerous other general purpose orspecial purpose computing system environments or configurations.

The invention may be described in the general context ofcomputer-executable instructions, such as program modules, beingexecuted by a computer. Generally, program modules include routines,programs, objects, components, data structures, and so forth, whichperform particular tasks or implement particular abstract data types.The invention may also be practiced in distributed computingenvironments where tasks are performed by remote processing devices thatare linked through a communications network. In a distributed computingenvironment, program modules may be located in local and/or remotecomputer storage media including memory storage devices.

With reference to FIG. 1, an exemplary system for implementing theinvention may include a general purpose computer system 100. Componentsof the computer system 100 may include, but are not limited to, a CPU orcentral processing unit 102, a system memory 104, and a system bus 120that couples various system components including the system memory 104to the processing unit 102. The system bus 120 may be any of severaltypes of bus structures including a memory bus or memory controller, aperipheral bus, and a local bus using any of a variety of busarchitectures. By way of example, and not limitation, such architecturesinclude Industry Standard Architecture (ISA) bus, Micro ChannelArchitecture (MCA) bus, Enhanced ISA (EISA) bus, Video ElectronicsStandards Association (VESA) local bus, and Peripheral ComponentInterconnect (PCI) bus also known as Mezzanine bus.

The computer system 100 may include a variety of computer-readablemedia. Computer-readable media can be any available media that can beaccessed by the computer system 100 and includes both volatile andnonvolatile media. For example, computer-readable media may includevolatile and nonvolatile computer storage media implemented in anymethod or technology for storage of information such ascomputer-readable instructions, data structures, program modules orother data. Computer storage media includes, but is not limited to, RAM,ROM, EEPROM, flash memory or other memory technology, CD-ROM, digitalversatile disks (DVD) or other optical disk storage, magnetic cassettes,magnetic tape, magnetic disk storage or other magnetic storage devices,or any other medium which can be used to store the desired informationand which can accessed by the computer system 100. Communication mediamay include computer-readable instructions, data structures, programmodules or other data in a modulated data signal such as a carrier waveor other transport mechanism and includes any information deliverymedia. The term “modulated data signal” means a signal that has one ormore of its characteristics set or changed in such a manner as to encodeinformation in the signal. For instance, communication media includeswired media such as a wired network or direct-wired connection, andwireless media such as acoustic, RF, infrared and other wireless media.

The system memory 104 includes computer storage media in the form ofvolatile and/or nonvolatile memory such as read only memory (ROM) 106and random access memory (RAM) 110. A basic input/output system 108(BIOS), containing the basic routines that help to transfer informationbetween elements within computer system 100, such as during start-up, istypically stored in ROM 106. Additionally, RAM 110 may contain operatingsystem 112, application programs 114, other executable code 116 andprogram data 118. RAM 110 typically contains data and/or program modulesthat are immediately accessible to and/or presently being operated on byCPU 102.

The computer system 100 may also include other removable/non-removable,volatile/nonvolatile computer storage media. By way of example only,FIG. 1 illustrates a hard disk drive 122 that reads from or writes tonon-removable, nonvolatile magnetic media, and storage device 134 thatmay be an optical disk drive or a magnetic disk drive that reads from orwrites to a removable, a nonvolatile storage medium 144 such as anoptical disk or magnetic disk. Other removable/non-removable,volatile/nonvolatile computer storage media that can be used in theexemplary computer system 100 include, but are not limited to, magnetictape cassettes, flash memory cards, digital versatile disks, digitalvideo tape, solid state RAM, solid state ROM, and the like. The harddisk drive 122 and the storage device 134 may be typically connected tothe system bus 120 through an interface such as storage interface 124.

The drives and their associated computer storage media, discussed aboveand illustrated in FIG. 1, provide storage of computer-readableinstructions, executable code, data structures, program modules andother data for the computer system 100. In FIG. 1, for example, harddisk drive 122 is illustrated as storing operating system 112,application programs 114, other executable code 116 and program data118. A user may enter commands and information into the computer system100 through an input device 140 such as a keyboard and pointing device,commonly referred to as mouse, trackball or touch pad tablet, electronicdigitizer, or a microphone. Other input devices may include a joystick,game pad, satellite dish, scanner, and so forth. These and other inputdevices are often connected to CPU 102 through an input interface 130that is coupled to the system bus, but may be connected by otherinterface and bus structures, such as a parallel port, game port or auniversal serial bus (USB). A display 138 or other type of video devicemay also be connected to the system bus 120 via an interface, such as avideo interface 128. In addition, an output device 142, such as speakersor a printer, may be connected to the system bus 120 through an outputinterface 132 or the like computers.

The computer system 100 may operate in a networked environment using anetwork 136 to one or more remote computers, such as a remote computer146. The remote computer 146 may be a personal computer, a server, arouter, a network PC, a peer device or other common network node, andtypically includes many or all of the elements described above relativeto the computer system 100. The network 136 depicted in FIG. 1 mayinclude a local area network (LAN), a wide area network (WAN), or othertype of network. Such networking environments are commonplace inoffices, enterprise-wide computer networks, intranets and the Internet.In a networked environment, executable code and application programs maybe stored in the remote computer. By way of example, and not limitation,FIG. 1 illustrates remote executable code 148 as residing on remotecomputer 146. It will be appreciated that the network connections shownare exemplary and other means of establishing a communications linkbetween the computers may be used.

Adaptively Refreshing a Web Page

The present invention is generally directed towards a system and methodfor adaptively refreshing a web page. Additionally, a change profile maybe provided representing a change history of the web page that may beused to adaptively adjust the refresh period for the web page byapplying an adaptive refresh policy using the divergence measurements ofthe change profile of the web page. Refreshing a web page as used hereinmay mean retrieving a recent version of a web page, which may be used,for instance, to update an index that may include a previously indexedversion of the web page.

As will be seen, a web page may be treated as a collection of fragments,rather than a unit, for the purpose of scheduling refreshing the webpage so that a refresh policy may be applied that may be selective,adaptive and local. Advantageously, the web page refresh model presentedmay be flexibly parameterized by a choice of divergence function toquantify the degree of difference between fresh and outdated versions ofa web page. As will be understood, the various block diagrams, flowcharts and scenarios described herein are only examples, and there aremany other scenarios to which the present invention will apply.

Turning to FIG. 2 of the drawings, there is shown a block diagramgenerally representing an exemplary architecture of system componentsfor adaptively refreshing a web page. Those skilled in the art willappreciate that the functionality implemented within the blocksillustrated in the diagram may be implemented as separate components orthe functionality of several or all of the blocks may be implementedwithin a single component. For example, the functionality for the webpage fragmentor 212 may be included in the same component as the changeprofile manager 206. Or the functionality of the change profile manager206 may be implemented as a separate component from the web crawler 204.

In various embodiments, a computer 202, such as computer system 100 ofFIG. 1, may include a web crawler 204 operably coupled to storage 216.In general, the web crawler 204 may be any type of executable softwarecode such as a kernel component, an application program, a linkedlibrary, an object with methods, and so forth. The storage 216 may beany type of computer-readable media and may store web pages 218, orlinks to web pages such as URLs, and change profiles 220 of web pages218. A change profile 220 may include a fragments summary 222representing a partitioning of a base version of the web page and asequence of divergence measurements 224 that may represent the numericdegree of difference between a base version of the web page andsubsequent versions of the web page.

The web crawler 204 may provide services for refreshing web pages 218for updating content indexed for use by search engines. A web page maybe any information that may be addressable by a URL, including adocument, an image, audio, and so forth. The web crawler 204 may includea change profile manager 206 for creating and updating a change profile220 of a web page 218, a page refresh policy manager 208 forimplementing a page refresh policy to determine the refresh period for aweb page, a page refresh scheduler 210 for scheduling refreshing a webpage at a time indicated by the refresh period, a web page fragmentor212 for partitioning a web page into a collection of fragments, and afragment comparator 214 for determining a divergence measurement of thedifference between two sets of fragments, each representing differentversions of a web page. Each of these modules may also be any type ofexecutable software code such as a kernel component, an applicationprogram, a linked library, an object with methods, or other type ofexecutable software code.

In order to adaptively determine when to refresh web pages in anincremental crawler, ephemeral information (e.g., quote of the day),which may be of little benefit to refresh, may be distinguished frompersistent information (e.g., blog entries), which may be worthwhile torefresh. Consider for example two web pages, A and B. Page A may have asmall amount of static content and a large amount of highly volatilecontent that may consist of dynamically generated text and links used topromote other web pages owned by the same organization. Page B maycontain a mixture of static content, volatile advertisements, andcontent changing bi-monthly such as recent recipes of a cooking site.Contrasting pages A and B, the importance of considering the lifetime ofinformation may be appreciated when crafting a page refresh policy. PageA may probably not be worth refreshing often, as most of its updates maysimply replace old ephemeral information with new ephemeral informationthat would have little value for a search engine to try to index. PageB, on the other hand, may be adding information that may persist for oneto two months (i.e., recipes) and might be worthwhile to index, makingpage B worthwhile to refresh frequently.

In general, consider a page P that a web crawler may have downloaded atleast once in the past. At a given time t, there may be two versions ofP: the source version P_(S)(t) and the crawled version P_(C)(t). Thedivergence, or numeric degree of difference, between the two versionsmay be defined by a function D(•), such that the divergence between thesource and crawled versions of P at time t may be represented byD(P_(S)(t), P_(C)(t)). The divergence function D(•) may be representedby a variety of forms as long as there may exist a constant D_(max) suchthat 0≦D(•)≦D_(max) for all inputs, and D(a,a)=0 for any a, so that, thedivergence may be zero for two inputs that may be identical. Thus,immediately after a web crawler may refresh page P, P_(C)=P_(S), andthere may be no divergence between the two versions. As time movesforward following the refresh, the source version P_(S) may change whilethe crawled version P_(C) may remain fixed, and their divergence maygrow from non-zero over time.

Among the variety of forms that may represent the divergence functionD(•), a binary function may be chosen, for instance, that may return 0if the two versions may be identical (or near-identical), and 1 if thetwo versions may differ. Alternatively, D(•) may be represented by amore complex measure that takes into account the sensitivity of aranking algorithm to the difference between versions. (See S. Pandey andC. Olston, User-centric Web Crawling, in Proceedings of WWW, 2005.)Regardless of the form representing D(•), a collection may be consideredfresh if the average page divergence may be low. More specifically,freshness of a collection ρ at time t may be defined as:

${F\left( {\rho,\tau} \right)} = {\frac{1}{\rho }{\sum\limits_{P \in \rho}^{\;}{\left( {D_{\max} - {D\left( {{P_{S}(t)},{P_{C}(t)}} \right)}} \right).}}}$Furthermore, the average freshness over time, for some duration of time,τ={t₁,t₂, . . . ,t_(n)}, may be defined as:

${F\left( {\rho,\tau} \right)} = {\frac{1}{\tau }{\sum\limits_{t \in \tau}^{\;}{{F\left( {\rho,t} \right)}.}}}$

Suppose that for each page P, divergence may depend only on the timet_(P) since the last refresh of P. In this model, D(•) may berepresented as D(P_(S)(t),P_(C)(t))=f_(P)(t−t_(P)), for some monotonicfunction f_(P)(•). If an objective may be to maximize time-averagedfreshness under a fixed resource budget (i.e., X refreshes per second),then it may be shown using La-grange Multipliers that the followingpolicy may be optimal: at each point in time t, pages may be refreshedthat may have U_(P)(t−t_(P))≧T, where U_(P)(t)=t·ƒ_(P)(t)−∫₀^(t)ƒ_(P)(x)dx and T may be a nonnegative constant that depends on theresource constraint X, the number of pages, and the f_(P)(•) functions.U_(P)(t) may represent the utility of refreshing page P at time t(relative to the last refresh time of P). The constant T may represent autility threshold and the unit of utility may be divergence×time. Pagesmay, thus, be refreshed for which the utility of refreshing the page maybe at least T.

In order to forecast how a page may behave, it may be useful to assume aweb page may continue to behave as it previously did. Hence, areasonable crawling strategy may be to select a utility threshold T≧0representing the amount of utility (in units of divergence×time) forwhich it may be worthwhile to perform a refresh, and refresh a pagewhenever its expected utility may exceed T. Resources not spent to keepexisting content fresh may be devoted to discovery and crawling of newcontent. With this approach, the utility threshold T may be a staticparameter that may be distributed to crawler nodes and may be adjustedoccasionally during global tuning. Once T may be set, refresh schedulingdecisions may be local with dependence on T and a given page's changeprofile. Within this framework a divergence function may be chosen thatmay determine our freshness model and an estimation of page utility maybe made, given that the crawler can only measure divergence at the timeof a refresh.

For a binary model of freshness, a binary function may be chosen torepresent the divergence function D(•). Given a source version P_(S) ofa web page and a potentially outdated crawled version P_(C) of the webpage held by a web crawler, the crawled version may be considered to befresh if P_(C) may be largely the same as P_(S); otherwise the crawledversion may be considered stale. The divergence function may berepresented by a binary function defined as:

${D\left( {P_{S},P_{C}} \right)} = \left\{ \begin{matrix}0 & {{{if}\mspace{14mu}{S\left( {P_{C},P_{S}} \right)}} = {True}} \\1 & {{otherwise},}\end{matrix} \right.$where S(•) may be a Boolean function that may test whether P_(C) andP_(S) may be similar enough for P_(C) to be considered fresh. In anembodiment, a choice for S(•) may be a function that returns True, if,and only if, the number of fragments common to both versions may beabove a certain threshold. Alternatively S(•) may be defined by theexpected disruption to search results due to using P_(C) instead ofP_(S) in a ranking process. (See, for example, S. Pandey and C. Olston,User-centric Web Crawling, in Proceedings of WWW, 2005.)

Such a model may also be extended in another embodiment to providenon-uniform treatment to pages by assigning to each page a numericimportance weight W(P), and replacing the “1” in the above definition byW(P). Importance weights may be based on PageRank scores (see, forexample, L. Page, S. Brin, R. Motwani, and T. Winograd, The PageRankCitation Ranking: Bringing Order to the Web, Technical Report, StanfordUniversity, 1998), or the degree of search engine “embarrassment” (see,for example, J. Wolf, M. Squillante, P. S. Yu, J. Sethuraman, and L.Ozsen, Optimal Crawling Strategies for Web Search Engines, in Proceedingof WWW, 2002). Without loss of generality, uniform weighting may beassumed.

While the binary freshness model may provide valuable insights, it maybe overly simplistic to use in practice given today's diverse Webenvironment. Perhaps the most serious shortcoming may be the inabilityof the binary freshness model to distinguish between persistent andephemeral information. Consider again the two pages A and B describedabove. Both pages may change frequently and by a large amount each time.If resources may be precious, then neither page A nor page B ought to berefreshed at any time under the binary freshness model. Such a policymay make sense for page A, because almost all of its content may bereplaced with each update, and refreshing frequently may not cause thecrawled version to converge to the source version. With page B, on theother hand, each update may create information that may remain on thepage for one to two months, so refreshing page B regularly may help thecrawled version more closely resemble the source version.

An alternative to a binary freshness model may be to treat a web page asa collection of small fragments, and examine the commonality between thefragments found in the source and crawled versions of a page. Using thisapproach, a page P may be represented as a set F(P) of unique fragments,and divergence may be defined as a comparison of two sets. In anembodiment, sets may be compared using a symmetric set difference, whichmay yield the following divergence function:D(P _(S) ,P _(C))=|F(P _(S))\F(P _(C))|+|F(P _(C))\F(P _(S))|.

Importantly, fragment-based freshness may identify that page B maydiverge slowly over time, and this characteristic of page B may make itworthwhile to refresh page B despite the fact that it undergoes frequentsubstantial updates. While the above formulation may identify thecharacteristic that a web page may diverge slowly over time, it may beproblematic in that longer pages may receive preferential treatment forrefreshing. A practical alternative to adjust for any preferentialtreatment in an embodiment may be to normalize each page's divergence tothe range [0, 1]. The Jaccard distance may be applied using thefollowing equation to normalize each page's divergence to the range [0,1]:

${D\left( {P_{S},P_{C}} \right)} = {1 - {\frac{{{F\left( P_{S} \right)}\bigcap{F\left( P_{C} \right)}}}{{{F\left( P_{S} \right)}\bigcup{F\left( P_{C} \right)}}}.}}$Additionally, explicit importance weights can be added to givepreferential treatment to pages based on criteria of choice as desired.Given the high fixed overhead of refreshing a part of a web page, theact of refreshing a web page may be atomic in various embodiments.

Thus the framework presented may optimally refresh a web page by takinginto account longevity of information and may provides a practicalrefresh scheduling policy that may be adaptive (i.e., adjusts tochanging page behavior) and local (i.e., does not require globaloptimization). These properties may make the refresh scheduling policysuitable for use in a real, parallel Web crawler.

FIG. 3 presents a flowchart generally representing the steps undertakenin one embodiment for adaptively refreshing a web page. A base versionof a web page in a collection of web pages to be indexed may be receivedat step 302. The base version of the web page may be partitioned into acollection of fragments at step 304. In an embodiment for partitioning aweb page into a collection of fragments, a web page may be representedas a DOM tree and fragments may be defined based on subtrees of acertain size. (See for example, World Wide Web Consortium, The DocumentObject Model.) This embodiment may require more computational overheadthan other embodiments and might lead to odd results in the presence ofupdates that alter the upper levels of the tree. In various otherembodiments, a web page may be treated as a sequence of words that maybe partitioned into a collection of fragments.

In an embodiment of partitioning a sequence of words into a collectionof fragments, the shingles method may be employed in which the set offragments may be the set of word-level k-grams (including ones thatoverlap) for a fixed value of k. Hashing may be used to reduce therepresentation size of a fragment. To further reduce the spacefootprint, the M shingles of minimal hash value may be retained, forsome constant M>0; an unbiased estimator of the Jaccard distance mayalso be applied based on minimal shingle sets. (See A. Z. Broder, S. C.Glassman, and M. S. Manasse, Syntactic Clustering of the Web, InProceedings World Wide Web, 1997.) (See also U.S. Pat. No. 6,230,155,entitled “Method for Determining the Resemblance of Documents”.) Thisembodiment of partitioning a sequence of words into a collection offragments may advantageously be able to distinguish small changes fromlarge ones.

A subsequent version of the web page may be received at step 306. Thesubsequent version of the web page may also be partitioned into acollection of fragments at step 308. Fragments from the base version ofthe web page may then be compared at step 310 with correspondingfragments from the subsequent version of the web page. The divergencebetween the web pages may be determined at step 312 from comparing thecorresponding fragments. In an embodiment for instance, the divergencebetween the source and crawled versions of P may be represented byD(P_(S), P_(C)), where

${D\left( {P_{S},P_{C}} \right)} = {1 - {\frac{{{F\left( P_{S} \right)}\bigcap{F\left( P_{C} \right)}}}{{{F\left( P_{S} \right)}\bigcup{F\left( P_{C} \right)}}}.}}$

Using the determined measurement of divergence, the refresh period forscheduling refreshing the web page may then be updated at step 314 byapplying an adaptive refresh policy. In an embodiment, the adaptiverefresh policy may schedule refreshing a web page at time t where afunction estimating the utility of refreshing the web page by examiningthe determined measurement of divergence may meet or exceed a utilitythreshold, T. Upon updating the refresh period for scheduling refreshingthe web page, an indication of the divergence measurement of thedifference between the base version of the web page and the subsequentversion of the web page may be output and processing may be finished foradaptively refreshing a web page. In an embodiment, the indication ofthe divergence measurement may be output by persistently storing theindication of the divergence measurement in a change profile of a webpage.

Change Profile of a Web Page

A web crawler may not typically have access to the full change historyof a web page and may not be able to compute measures such as U_(P)(•)directly. However, an adaptive page refresh policy may be employed thatsimultaneously estimates and exploits the change behavior of a web pageto achieve a good overall refresh schedule by constructing andadaptively maintaining a change profile of each web page. A changeprofile may include salient information to permit the crawler todifferentiate between persistent and ephemeral information, in additionto the usual differentiation between fast-changing and slow-changingpages. FIG. 4 presents a flowchart generally representing the stepsundertaken in one embodiment for creating a change profile of a webpage. At step 402, a base version of a web page may be received. Thebase version of the web page may be partitioned into a collection offragments at step 404. In various embodiments, the shingles methoddescribed in conjunction with step 304 of FIG. 3 may be employed topartition the sequence of words of a web page into a collection offragments. A change profile may be created for the web page at step 406that may include a shingle summary of the base version of the web page.

A change profile may include a sequence of pairs indicating a time and adivergence measurement, such as (time, divergence), starting with a pairrepresenting a base measurement, (t_(B), 0), and followed by zero ormore subsequent measurements in increasing order of time. Eachmeasurement may correspond to a web page refresh event. Time t_(B) maybe defined as the base time at which the change profile was created. Inan embodiment, subsequent divergence values may be relative to the baseversion, which may be the version of the web page as of time t_(B),written P(t_(B)). For example, a sequence of pairs representing a timeand divergence measurement of a change profile may be: <(10, 0), (12,0.2), (15, 0.2)>. This sequence of a change profile may indicate thatthe refresh times for this web page may include 10, 12, and 15, and thatD(P(10),P(12))=0.2, and D(P(10),P(15))=0.2. In an embodiment, one changeprofile may be maintained for a web page, along with a shingle summaryof the base version P(t_(B)).

FIG. 5 presents a flowchart generally representing the steps undertakenin one embodiment for updating a change profile of a web page. Ingeneral, each time web page P may be refreshed, the change profile maybe updated. At step 502, a subsequent version of a web page may bereceived after the change profile of the web page may have been created.The subsequent version of the web page may be partitioned into acollection of fragments at step 504. In various embodiments, theshingles method described in conjunction with step 304 of FIG. 3 may beemployed to partition the sequence of words of a web page into acollection of fragments. The divergence of the subsequent version fromthe base version stored in the change profile may be determined at step506. For example, if the subsequent version may be received at time 23,D(P(10),P(23)) may be determined in an embodiment by comparing theshingle summary of the base version, P(10), with the shingle summary ofP(23).

After determining the divergence measurement of the subsequent versionfrom the base version of the web page, the change profile may be updatedfor the web page at step 508 by including the divergence of thesubsequent version of the web page in the change profile. For instance,at time t, the change profile may be extended by appending the pair (t,D(P(t_(B)), P(t))) to the sequence of pairs of the change profile. Thus,if D(P(10),P(23))=0.3 at time 23, the sequence of pairs of the changeprofile, <(10, 0), (12, 0.2), (15, 0.2)> may be extended by appending(23, 0.3) so that the updated sequence of pairs may be <(10, 0), (12,0.2), (15, 0.2), (23, 0.3)>.

Adaptively Scheduling Refreshing a Web Page Using a Change Profile

Refresh scheduling may be driven by change profiles and may occur on astrictly local basis with minimal cross-node communication amongprocessing nodes executing refresh scheduling in a distributed system.Moreover, the scheduling method may be based on an underlyingtheoretical model of optimal refreshing. FIG. 6 presents a flowchartgenerally representing the steps undertaken in one embodiment foradaptively scheduling refreshing a web page using a change profile. Atstep 602, a recent version of a web page may be received after thechange profile of the web page may have been created. The change profilemay be updated for the web page at step 604 by employing the stepsdescribed in FIG. 5 including partitioning the recent version of the webpage into a collection of fragments, determining the divergencemeasurement of the recent version from the base version of the web page,and updating the change profile for the web page by including thedivergence of the recent version of the web page in the change profile.The refresh period for scheduling refreshing the web page may then beupdated at step 606 using the change profile.

In general, a goal of an adaptive refresh policy may be to converge onan appropriate refresh period φ to use for a web page, based onestimating utility by examining the recent change history of a web pageand comparing the estimated utility to a parameter T that may specify autility threshold, i.e., an amount of utility for which it may be deemedworthwhile to perform a refresh. A partial sample of a web page's changehistory may be provided in the change profile. Consider t_(L) to denotethe most recent time in the sequence of pairs indicating a time and adivergence measurement included in a change profile. A lower bound,denoted as A_(min) and an upper bound, denoted as A_(max), may becomputed on the area under a divergence curve in the interval [t_(B),t_(L)]. Substituting these bounds into U_(P)(t)=t·ƒ_(P)(t)−∫₀^(t)ƒ_(P)(x)dx, the following lower bound, U_(min), and upper bound,U_(max), on the utility U of using refresh period (t_(L)−t_(B)) may beobtained:U _(min)=(t _(L) −t _(B))·D(P(t _(B)),P(t _(L)))−A _(max),U _(max)=(t _(L) −t _(B))·D(P(t _(B)),P(t _(L)))−A _(min).

Immediately after refreshing a web page and extending the sequence ofpairs of its change profile, the following refresh policy may be appliedin an embodiment to adaptively adjust the refresh period φ:

if U_(max)<T, set φ:=(t_(L)−t_(B))·2.

if U_(min)≧T, reset the change profile to {(t_(L),0)}, set the baseversion to P(t_(L)), and set φ:=φ/2.

After updating the refresh period for scheduling refreshing the webpage, a time may be scheduled at step 608 for refreshing the web pageusing the updated refresh period. In an embodiment, the next refresh ofthe web page may be scheduled for φ time units in the future.

The above policy may be guided by the rationale that if the upper boundon utility may be below the utility threshold T, the period(t_(L)−t_(B)) may be too short, so exploration of larger refresh periodsmay continue. To do so, the quantity (t_(L)−t_(B)) may be doubled in anembodiment. On the other hand, if the lower bound on utility may beabove the utility threshold T, the period (t_(L)−t_(B)) may be too long,so exploration of shorter refresh periods may be initiated by startingover using half of the current period in an embodiment. There may arisea third case in which the utility bounds may straddle the utilitythreshold, i.e., U_(min)<T≦U_(max). In this case, the refresh period maybe left unchanged in various embodiments.

Given that Web sources may be autonomous and web pages may changearbitrarily at any time, it may be important to mitigate the riskassociated with waiting a long time between refreshes. A policy may aimto refresh a web page whenever a utility penalty of not doing so mayexceed T and may also aim to guarantee that, in the worst case, theutility penalty incurred without performing a refresh may be at mostρ·T, where ρ≧1 may be a risk control parameter. Recalling that D_(max)may denote the maximum divergence value allowed under a chosen freshnessmodel, the maximum loss in utility incurred during t time units may bedenoted as t·D_(max). To cap the utility loss between refreshes at ρ·T,the refresh period φ may be restricted in an embodiment to remain lessthan or equal to ρ·T/D_(max).

Some embodiments of the present invention enable downloading new pagesand keeping previously-downloaded pages fresh by providing apage-refresh policy that might be used by an automated incrementalupdater such as a web crawler. In this regard, FIG. 7 shows a flowchartof a process for calculating a refresh time for revisiting a web pageand checking for changes to it, which process might be used as a policyin some embodiments. In the first step 702 of the process, the policycauses an incremental updater, such as a web crawler, to visit a webpage and then updates the change profile for the web page. In the secondstep 704, the policy specifies a refresh interval based on the base timein the change profile and the most recent refresh time added to theprofile, namely, the time added in step 702. In some embodiments, thisrefresh interval is defined as (t_(L)−t_(B)), where t_(L) is the mostrecent time in the change profile and t_(B) is the base time, i.e., thetime at which the change profile was initiated. Then, in the third step706, the policy determines upper and lower bounds with respect toutility for the refresh interval just specified. For example, the policymay determine the lower bound, U_(min), and upper bound, U_(max), on theutility U of using refresh period (t_(L)−t_(B)) defined by:U _(min)=(t _(L) −t _(B))·D(P(t _(B)),P(t _(L)))−A _(max) , U _(max)=(t_(L) −t _(B))·D(P(t _(B)),P(t _(L)))−A _(min).

In step 708, the policy determines whether the upper bound from step 706is less than a utility threshold, T. If so, the policy proceeds to step710, where the refresh period is set to double the refresh intervalbefore proceeding to step 716. Otherwise, if the upper bound is not lessthan the utility threshold, the policy proceeds directly from step 708to step 712. In step 712, the policy determines whether the lower boundfrom step 706 is greater than or equal to the utility threshold. If so,the policy proceeds to step 714, where the refresh period is halvedbefore proceeding to step 716. Also at step 714, the policy resets thebase time to t_(L), the base version of the web page to P(t_(L)), andthe change profile to {(t_(L), 0)}. Otherwise, if the lower bound isless than the utility threshold, the policy proceeds directly from step712 to step 716. In step 716, the policy schedules a new refresh timefor the web page, using the refresh period as calculated and as cappedby a risk control parameter. In this regard, note that if the thresholdis greater than the lower bound or is less than or equal to the upperbound, the refresh period remains unchanged.

In addition to adaptively adjusting the refresh period by examining thechange history of the web page and by comparing the utility ofrefreshing the web page at the expiration of the refresh period to autility threshold, the framework of the described invention will alsosupport other refresh policies. Those skilled in the art will appreciatethat a uniform refresh policy may be applied that may set the refreshperiod at a fixed time interval such as 48 hours, a greedy refreshpolicy may be applied to adaptively adjust the refresh period by halvingthe refresh period if the divergence measurement may exceeds a thresholdor otherwise doubling the refresh period, a cost refresh policy may beapplied to adaptively adjust the refresh period by comparing the cost ofrefreshing a web page to a lower bound, and so forth.

As can be seen from the foregoing detailed description, the presentinvention provides an improved system and method for adaptivelyrefreshing a web page. A base version of a web page may be partitionedinto a collection of fragments that may be compared with thecorresponding fragments of a recent version of the web page to determinea divergence measurement of the difference between the base version andthe recent version of the web page. The divergence measurement may berecorded in a change profile representing a change history of the webpage that includes a sequence of numeric pairs indicating a time offsetand a divergence measurement of the difference between a version of theweb page at the time offset and a base version of the web page. Therefresh period for the web page may be adjusted by applying an adaptiverefresh policy using the divergence measurements of the change profileof the web page. Advantageously, the web page refresh model presentedmay be flexibly parameterized by a choice of divergence function toquantify the degree of difference between fresh and outdated versions ofa web page. The web page refresh policy using the change profile may beselective, adaptive and local. As a result, the system and methodprovide significant advantages and benefits needed in contemporarycomputing and in online applications.

While the invention is susceptible to various modifications andalternative constructions, certain illustrated embodiments thereof areshown in the drawings and have been described above in detail. It shouldbe understood, however, that there is no intention to limit theinvention to the specific forms disclosed, but on the contrary, theintention is to cover all modifications, alternative constructions, andequivalents falling within the spirit and scope of the invention.

What is claimed is:
 1. A computer system for adaptively refreshing a webpage, comprising: a web crawler refreshing the web page; a processordevice operating as a page refresh policy manager implementing a pagerefresh policy to determine a refresh period for the web page using adivergence measurement between a base version and one or more subsequentversions of the web page, by performing: receiving a base version of theweb page to be indexed; partitioning the base version of the web pageinto a first collection of fragments; receiving a subsequent version ofthe web page; and partitioning the subsequent version of the web pageinto a second collection of fragments; a processor device operating as afragment comparator performing: comparing the fragments from the firstcollection to corresponding fragments from the second collection todetermine the divergence measurement representing a numeric degree ofdifference between the fragments from the first and second collections;recording the divergence measurement in a change profile for the webpage; using the divergence measurement between the fragments as the webpage divergence between web page versions; updating a refresh period forscheduling refreshing the web page using the determined divergencemeasurement; and scheduling a time for refreshing the web page using therefresh period; wherein updating the refresh period of the web pageusing the web page divergence for scheduling refreshing of the web pagecomprises applying an adaptive refresh policy to adjust the refreshperiod by determining a lower bound on utility and an upper bound onutility of refreshing the web page at expiration of the refresh periodby examining the change history of the web page and increasing therefresh period if the upper bound of utility is less than the utilitythreshold or decreasing the refresh period if the lower bound of utilityis greater than or equal to the utility threshold; wherein the utilitythreshold is less than a risk control parameter.
 2. The system of claim1 further comprising a page refresh scheduler for scheduling refreshingthe web page at a time indicated by the refresh period.
 3. The system ofclaim 1 further comprising a change profile manager for updating thechange profile of the web page, the change profile measuring changesbetween the base version of the web page and the one or more subsequentversions of the web page.
 4. A computer-implemented method foradaptively refreshing a web page, comprising: using a processor deviceconfigured to perform: receiving a base version of the web page;partitioning the base version of the web page into a first collection offragments; receiving a first subsequent version of the web page;receiving a second subsequent version of the web page; partitioning thesecond subsequent version of the web page into a second collection offragments; comparing the fragments from the first collection tocorresponding fragments from the second collection to determine adivergence measurement representing a numeric degree of differencebetween the fragments from the first and second collections; recordingthe divergence measurement in a change profile for the web page; usingthe divergence measurement between the fragments as a web pagedivergence between a base version of the web page and the subsequentversion of the web page; outputting an indication of the web pagedivergence, wherein the web page divergence is determined at least inpart on a comparison of a content of the base version to a content ofthe one or more subsequent versions of the web page; updating a refreshperiod of the web page using the web page divergence for schedulingrefreshing of the web page; and scheduling a time for refreshing the webpage using the refresh period; wherein updating the refresh period ofthe web page using the web page divergence for scheduling refreshing ofthe web page comprises applying an adaptive refresh policy to adjust therefresh period by determining a lower bound on utility and an upperbound on utility of refreshing the web page at expiration of the refreshperiod by examining the change history of the web page and increasingthe refresh period if the upper bound of utility is less than theutility threshold or decreasing the refresh period if the lower bound ofutility is greater than or equal to the utility threshold; wherein theutility threshold is less than a risk control parameter.
 5. The methodof claim 4 wherein outputting the indication of the web page divergencecomprises updating the change profile for the web page by including theindication of the web page divergence in the change profile.
 6. Anon-transitory computer-readable storage medium havingcomputer-executable instructions, the computer-executable instructionswhen executed by a processor perform the following operationscomprising: receiving a base version of the web page; partitioning thebase version of the web page into a first collection of fragments;receiving a first subsequent version of the web page; receiving a secondsubsequent version of the web page; partitioning the second subsequentversion of the web page into a second collection of fragments; comparingthe fragments from the first collection to corresponding fragments fromthe second collection to determine a divergence measurement representinga numeric degree of difference between the fragments from the first andsecond collections; recording the divergence measurement in a changeprofile for the web page; using the divergence measurement between thefragments as a web page divergence between a base version of the webpage and the subsequent version of the web page; outputting anindication of the web page divergence, wherein the web page divergenceis determined at least in part on a comparison of a content of the baseversion to a content of the one or more subsequent versions of the webpage; updating a refresh period of the web page using the web pagedivergence for scheduling refreshing of the web page; and scheduling atime for refreshing the web page using the refresh period; whereinupdating the refresh period of the web page using the web pagedivergence for scheduling refreshing of the web page comprises applyingan adaptive refresh policy to adjust the refresh period by determining alower bound on utility and an upper bound on utility of refreshing theweb page at expiration of the refresh period by examining the changehistory of the web page and increasing the refresh period if the upperbound of utility is less than the utility threshold or decreasing therefresh period if the lower bound of utility is greater than or equal tothe utility threshold; wherein the utility threshold is less than a riskcontrol parameter.
 7. The non-transitory computer-readable storagemedium of claim 6, wherein outputting the indication of the web pagedivergence comprises updating the change profile for the web page byincluding the indication of the web page divergence in the changeprofile.